package com.nut.sp.service.impl;

import com.nut.sp.dao.UserDao;
import com.nut.sp.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Transactional
    @Override
    public void testRoll() {
        userDao.updateUserName();
        userDao.updateCreatedTime();
        throw new RuntimeException(" roll test");
    }
}
